package vn.vfriends.id.service;

import java.io.Serializable;
import java.util.List;
import vn.vfriends.id.jpa.entity.Group;

/**
 *
 * @author tuan@vfriends.vn
 */
public interface GroupService extends Serializable {
    
    public void create(Group group) throws Exception;
    
    public void edit(Group group) throws Exception;
    
    public void destroy(Long id) throws Exception;
    
    public List<Group> find();
    
    public List<Group> find(int maxResults, int firstResult);
    
    public Group find(Long id);
    
    public Group findByName(String name);
    
    public Group findByCode(Group.GroupCode code);
    
    public int getCount();
}
